﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class RandomPipeY : MonoBehaviour {

	// Use this for initialization
	void Start () {
        RandomY();
	}
	public void RandomY()
    {
        float y = Random.Range(-0.2f, 0.2f);
        //transform.position = new Vector3(transform.position.x, y, transform.position.z);
        transform.localPosition = new Vector3(transform.localPosition.x, y, transform.position.z);
    }
}
